﻿using System.Collections.Generic;
using System.Linq;

namespace WebSite.Config.Extensions
{
	public static class ObjectExtensions
	{
		public static bool In<T>(this T obj, IEnumerable<T> list)
		{
			if (list == null)
				return false;

			return list.Contains(obj);
		}
	}
}